#ifndef _ACTION_PAGEINFO_H
#define _ACTION_PAGEINFO_H

#include <stdbool.h>

typedef enum {
    ACTION_FETCHED_SUCCESSFULLY,
    ACTION_PAGEINFO_PARSE_FAILURE,
    ACTION_FETCHING_FAILURE
} action_pageinfo_status;

typedef struct {
    action_pageinfo_status status;
    char* loginText;
    _Bool passwordEncrypt;
    char* publicKeyExponent;
    char* publicKeyModulus;
} action_pageinfo_result;

action_pageinfo_result action_pageinfo(
    const char* bind_interface,
    const char* portal_host,
    const char* portal_search
);

#endif
